function initMy(){
			chart = new Highcharts.Chart({
            chart: {
                renderTo: 'container',
                plotBackgroundColor: null,
                plotBorderWidth: null,
                plotShadow: false
            },
            title: {
                text: '未来进出港航班延误程度分布（饼图）'
            },
            tooltip: {
                formatter: function() {
                    return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %';
                }
            },
            plotOptions: {
                pie: {
                    allowPointSelect: true,
                    cursor: 'pointer',
                    dataLabels: {
                        enabled: true,
                        color: '#000000',
                        connectorColor: '#000000',
                        formatter: function() {
                            return '<b>'+ this.point.name +'</b>: '+ this.percentage +' %';
                        }
                    }
                }
            },
            series: [{
                type: 'pie',
                name: 'Browser share',
                data:  pieArray
                
            }]
        });
  
    	chart.redraw();
}


		 
function initArray(){
	pieArray.splice(0,100000000);
	if($("#table")!=null){
		//alert("111");
		var d1=	$("#table").getCol("title",false);
		var d2=	$("#table").getCol("rate",false);
		var d3=	colorValue;//$("#table").getCol("color",false);
		
     	 //d1.shift();
		 //d2.shift();
		// d3.shift();
		 //alert(d1+"\n"+d2+"\n"+d3+"\n");

		var aa="";
		for(var i=0;i<4;i++){
				var newPieObject;
				d2[i]=isNaN(parseFloat(d2[i]))?0.0:parseFloat(d2[i]);
				if(i==0){
									
					newPieObject={name: d1[i],y: d2[i], sliced:true, selected: true,color:d3[i] };
				}else{
					newPieObject={name: d1[i],y: d2[i], sliced:true, selected:false,color:d3[i] };
				}
				aa+="{name:"+d1[i]+",y:"+ d2[i]+",color:"+d3[i]+"},\n"
				//d1[i]=isNaN(parseInt(d1[i]))?0:d1[i];
                pieArray.push(newPieObject);
			}
		//alert(aa);//打印出所有信息
	}else{
		
	}
	
	
}

function printArray(){

}

